﻿using SportsPlatform.BaseModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SportsPlatform.Model.PermissionManagement
{
    /// <summary>
    /// 部门信息架构表，树状表示部门及职务
    /// </summary>
    [Table("PM_DepartmentInfo")]
    public class DepartmentInfo : BaseModel
    {
        /// <summary>
        /// 部门或下级名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string DepartmentName { get; set; }

        /// <summary>
        /// 部门描述
        /// </summary>
        [Column(TypeName = "text")]
        public string DepartmentDescribe { get; set; }
        /// <summary>
        /// 部门级别字符串
        /// </summary>
        [MaxLength(500)]
        public string DepartmentLevel { get; set; }

        /// <summary>
        /// 父级主键Id
        /// </summary>
        public Guid ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int DepartmentSeq { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public Guid CompanyId { get; set; }

        /// <summary>
        /// 状态，是否启用
        /// </summary>
        public bool States { get; set; }
    }
}
